package com.central.modules.sys.model;

import com.central.common.validator.group.AddGroup;
import com.central.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

@Data
public class AddSysMenuRequest implements Serializable {
    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    private Long id;

    private Long parentId;

    private String name;

    private String pathMethod;
    private String path;

    private Integer type;//是否是菜单
    /**
     * 授权(多个用逗号分隔，如：sys:user:list,sys:user:save)
     */
    private String permissions;

    private String icon;

    private Integer sortOrder;

    /**
     * 菜单显示隐藏控制
     */
    private Integer visible;

    /**
     * 路由缓冲
     */
    private Integer keepAlive;

    /**
     * 菜单是否内嵌
     */
    private Integer embedded;



}
